package com.qzct.service.impl;

import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.qzct.entity.CuisineComments;
import com.qzct.entity.vo.CommentsVo;
import com.qzct.mapper.CuisineCommentsMapper;
import com.qzct.service.CuisineCommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *  服务层实现。
 *
 * @author 闽闽
 * @since 2025-01-11
 */
@Service
public class CuisineCommentsServiceImpl extends ServiceImpl<CuisineCommentsMapper, CuisineComments> implements CuisineCommentsService {

    @Autowired
    CuisineCommentsMapper cuisineCommentsMapper;
    @Override
    public ArrayList<CommentsVo> getByAid(Serializable id) {
        return cuisineCommentsMapper.getCid(id);
    }
    @Override
    public boolean updateIscheck(Serializable id) {
        return cuisineCommentsMapper.updateIscheck(id);
    }
}
